Release 10.1A: OpenEdge Development:
Progress Dynamics Managers API Reference
getTranslation
This procedure checks if any translations exist for the passed-in details.
If a language is not passed in, the procedure uses the specified login language. If the object passed in is a specific object, the procedure first looks for a translation for that specific object. If none exists, it looks for a translation for all objects (blank object name). The procedure can handle title, browse, fill-in, radio set, text, button, toggle box, combo box, slider, and editor widgets.
Location: af\app\aftrnmngrp.i Parameters:INPUT pdLanguageObj AS DECIMALThe language object number, or 0 for the login language.
INPUT pcObjectName AS CHARACTERThe object name for which to get the translation, or blank for all.
INPUT pcWidgetType AS CHARACTERThe widget type.
INPUT pcWidgetName AS CHARACTERThe widget name (
LABEL) or, if it is a text widget, the text to translate.INPUT pcWidgetEntry AS INTEGERThe widget entry, used for radio sets and similar widgets
OUTPUT pcOriginalLabel AS CHARACTERThe original untranslated label.
OUTPUT pcTranslatedLabel AS CHARACTERThe translated label.
OUTPUT pcOriginalTooltip AS CHARACTERThe original untranslated ToolTip.
OUTPUT pcTranslatedTooltip AS CHARACTERThe translated ToolTip.
Notes:
- A window title translation is a special case that uses “title” as the value for both widget type and widget name.
- Column label translations use a widget type of “browse” and a widget name of the column label.
- ToolTip translations are ignored for text widgets.
Examples: See the- For a procedure running client-side, if the
cachedTranslationsOnlyproperty is set toYESin the Session Manager, then the database is not checked for translations that are not in the cache.translatePhrasefunction inaf\app\aftrnmngrp.i.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |